#include <catch2/catch.hpp>

#include "051_hard.hpp"

using namespace jianzhi_051;

TEST_CASE("051", "[JIANZHI][051]")
{

SECTION("example 1") {
    std::vector nums{7,5,6,4};
    auto num = Solution().reversePairs(nums);
    CAPTURE(nums);
    CHECK(num == 5);
}

SECTION("example 1") {
    std::vector nums{7,2,1,3,6,5,4};
    auto num = Solution().reversePairs(nums);
    CAPTURE(nums);
    CHECK(num == 10);
}

}
